<template>
  <div id="app">
    <keep-alive>
        <router-view v-if="$route.meta.keepAlive">
            <!-- 这里是会被缓存的视图组件，比如 page1,page2 -->
        </router-view>
    </keep-alive>

    <router-view v-if="!$route.meta.keepAlive">
        <!-- 这里是不被缓存的视图组件，比如 page3 -->
    </router-view>
  </div>
</template>

<script>
export default {
  name: "app"
};
</script>

<style>
html,body,#app {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #e6e8eb;
  margin: 0;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin: 0 auto;
}
#app .page-scroll {
  height: 100%;
  width: 100%;
}
#app .el-scrollbar__wrap {
  overflow-x: hidden;
}
#app .el-scrollbar__thumb{
  background: #535353;
      width: 3px;
}
#app .is-horizontal {
  display: none;
}
</style>
